package com.jiangyao.model.dto.backend;

import com.jiangyao.model.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 组织班级成员DTO
 *
 * @author: yangyongchuan
 * @create: 2020年08月15日 21:58
 */
@ApiModel("组织班级成员DTO")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ClassUserDTO implements BaseDTO {

	private static final long serialVersionUID = 4818672267785672342L;

	/**
	 * 主键ID
	 */
	@ApiModelProperty(value = "主键ID")
	@NotNull(message = "主键ID不能为空", groups = {Edit.class, Detail.class})
	private Integer classUserId;

	/**
	 * 主键ID集合
	 */
	@ApiModelProperty(value = "主键ID集合")
	@NotNull(message = "主键ID不能为空", groups = {Delete.class})
	private List<Integer> classUserIdList;

	/**
	 * 组织ID
	 */
	@ApiModelProperty(value = "组织ID")
	@NotNull(message = "组织ID不能为空", groups = {Add.class})
	private Integer orgId;

	/**
	 * 班级ID
	 */
	@ApiModelProperty(value = "班级ID")
	@NotNull(message = "组织ID不能为空", groups = {Add.class})
	private Integer classId;

	/**
	 * 状态 1-启用 0-禁用
	 */
	@ApiModelProperty(value = "状态 1-启用 0-禁用", example = "1")
	@NotNull(message = "状态不能为空", groups = {Delete.class})
	private Integer status;

}
